]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
iconGrid: Rename ::key-focus-in signal
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 21 Aug 2018 09:21:26 +0000 (06:21 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 9 Oct 2018 01:42:25 +0000 (22:42 -0300)
As part of our quest to obsolete Shell.GenericContainer, IconGrid will
become a Clutter.Actor subclass. As the ::key-focus-in signal would
clash with Clutter.Actor::key-focus-in, rename it to ::child-focused.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/153

js/ui/appDisplay.js
js/ui/iconGrid.js

index 740f0c240e3c68640414b3d8b248ca1e13faeda7..9d648c92ebf3ae0b7dd669489211e1a6b25235a3 100644 (file)
@@ -126,8 +126,8 @@ var BaseAppView = new Lang.Class({
         else
             this._grid = new IconGrid.IconGrid(gridParams);
 
-        this._grid.connect('key-focus-in', (grid, actor) => {
-            this._keyFocusIn(actor);
+        this._grid.connect('child-focused', (grid, actor) => {
+            this._childFocused(actor);
         });
         // Standard hack for ClutterBinLayout
         this._grid.actor.x_expand = true;
@@ -136,7 +136,7 @@ var BaseAppView = new Lang.Class({
         this._allItems = [];
     },
 
-    _keyFocusIn(actor) {
+    _childFocused(actor) {
         // Nothing by default
     },
 
@@ -717,7 +717,7 @@ var AllView = new Lang.Class({
         });
     },
 
-    _keyFocusIn(icon) {
+    _childFocused(icon) {
         let itemPage = this._grid.getItemPage(icon);
         this.goToPage(itemPage);
     },
@@ -1154,7 +1154,7 @@ var FolderView = new Lang.Class({
         this.actor.add_action(action);
     },
 
-    _keyFocusIn(actor) {
+    _childFocused(actor) {
         Util.ensureActorVisibleInScrollView(this.actor, actor);
     },
 
index bf8e081e5be182e71dcdeac3f1b1f934b590f131..a0d008386b4de8138f921b8524515e77b6954e46 100644 (file)
@@ -238,7 +238,7 @@ var IconGrid = new Lang.Class({
     },
 
     _keyFocusIn(actor) {
-        this.emit('key-focus-in', actor);
+        this.emit('child-focused', actor);
     },
 
     _childAdded(grid, child) {